package com.binguo.api.form;

import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class OrderItemForm {

    @ApiParam(value = "商品序号", required = false)
    private String seq;

    @ApiParam(value = "商品序号", required = false)
    private String change;

    @ApiParam(value = "商品id", required = true)
    @NotNull
    private Integer productId;

    @ApiParam(value = "单价", required = true)
    @NotNull
    private Long price;

    @ApiParam(value = "数量", required = true)
    @NotNull
    private Integer quantity;

    @ApiParam(value = "标识CODE", required = true)
    @NotNull
    private String searchId;
}
